package org.kl.bf.entity.basic;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;
import org.kl.bf.entity.Excel;
import org.kl.bf.utils.BasicConstants;

//JPA标识
@Entity
@Table(name = "basic_excel_import")
public class ExcelImport extends AuditableEntity {
	private static final long serialVersionUID = -4263388634095188567L;

	@Excel(exportName = "导入编号")
	private String importNo;
	@Excel(exportName = "模板名称")
	private String importName;
	@Excel(exportName = "表名称")
	private String tableName;
	@Excel(exportName = "是否覆盖")
	private Integer isOverride;
	@Excel(exportName = "是否有附件")
	private Integer withAttachment;

	public ExcelImport() {

	}

	public ExcelImport(String id) {
		this.id = id;
	}

	public String getImportNo() {
		return importNo;
	}

	public void setImportNo(String importNo) {
		this.importNo = importNo;
	}

	public String getImportName() {
		return importName;
	}

	public void setImportName(String importName) {
		this.importName = importName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Integer getIsOverride() {
		return isOverride;
	}

	public void setIsOverride(Integer isOverride) {
		if (isOverride == null) {
			this.isOverride = BasicConstants.NO_INT;
		} else {
			this.isOverride = isOverride;
		}
	}

	public Integer getWithAttachment() {
		return withAttachment;
	}

	public void setWithAttachment(Integer withAttachment) {
		if (withAttachment == null) {
			this.withAttachment = BasicConstants.NO_INT;
		} else {
			this.withAttachment = withAttachment;
		}
	}

}
